Ext.define('EUF.view.HeadWiseDetails', {
    extend: 'Ext.panel.Panel',
	alias :'widget.headWiseDetails',
	id:'headWiseDetails',

    layout: {
        type: 'anchor'
    },

    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            items: [
				{
				    xtype: 'radiogroup',
				    margin: '20 0 0 100',
				    width: 400,
				    items: [
				        {
				            xtype: 'radiofield',
				            name: 'headWise',
                            boxLabel: '95% Deficit Grant'
				        },
				        {
				            xtype: 'radiofield',
				            name: 'headWise',
                            boxLabel: 'M.C Account'
				        },
				        {
				            xtype: 'radiofield',
				            name: 'headWise',
                            boxLabel: 'A.F Account'
				        }
				    ]
				},
				{
				    xtype: 'fieldcontainer',
				    height: 26,
				    width: 659,
				    margin: '20 0 0 50',
				    defaults: {labelWidth: 50},
				    layout: {
				        align: 'stretch',
				        type: 'hbox'
				    },
				    items: [
				        {
				            xtype: 'datefield',
				            fieldLabel: 'From'
				           // flex: .5
				        },
				        {
				            xtype: 'datefield',
				            fieldLabel: 'To',
				            margins: '0 0 0 20'
				            //flex: .5
				        }
				    ]
				},
				{
				    xtype: 'fieldcontainer',
				    height: 24,
				    width: 680,
				    margin: '20 0 20 0',
				    layout: {
				        align: 'stretch',
				        type: 'hbox'
				    },
				    items: [
				        {
				            xtype: 'button',
				            width: 120,
				            text: 'Show',
				            margins: '0 0 0 100'
				        },
				        {
				            xtype: 'button',
				            width: 120,
				            text: 'Cancel',
				            margins: '0 0 0 30'
				        }
				    ]
				},
				{
					//xtype: 'gridpanel',
					xtype: 'FantaSearchGrid',
					//title : 'Student List',
					hideAddRemove : true,
					id:'HeadWiseGridList',
					stripeRows : true,
					//selType : 'cellmodel',
					plugins : [cellEditor],
					autoScroll:true,
					frame : true,
					store : 'FeeStore',
					columns : stColumnsList,
					 
				}
            ]
        });

        me.callParent(arguments);
    }
});



var stColumnsList = new Array();

	  
stColumnsList[0] = {
	header : 'Name',
	dataIndex : 'studentName',
	                
	 flex: 1
};
 
stColumnsList[1] = {
	header : 'Batch',
	dataIndex : 'batch',
	
               
	 flex: 1
}; 
 
stColumnsList[2] = {
	header : 'Admission No',
	dataIndex : 'admNo',
	
               
	 flex: 1
}; 
	

stColumnsList[3] = {
	header : 'Class',
	dataIndex : 'className',
	field : 'textfield',
	flex: 1 
	};
			
stColumnsList[4] = {
	header : 'Roll Number',
	dataIndex : 'rollNo',
	field : 'textfield',
	flex: 1 
	};
			
